# -*- coding:utf-8 -*-
import Tkinter as tk
#用户注册对话框
def user_reg():
    main_box= tk.Tk()
    path_shp = tk.StringVar()
    main_box.title('用户自主注册')

    frm1 = tk.Frame(main_box)
    frm1.pack(side='top',fill='both',expand='yes')
    tk.Label(frm1,text = "手机号").pack(side='left')
    mobile = tk.Entry(frm1, width=50)
    mobile.pack(side='left')

    frm2 = tk.Frame(main_box)
    frm2.pack(side='top',fill='both',expand='yes')
    tk.Label(frm2,text = "验证码").pack(side='left')
    tk.Entry(frm2,width=50).pack(side='left')
    tk.Button(frm2, text = "发送验证码", command = sendacccode).pack(side='top',fill='both',expand='yes')

    frm3 = tk.Frame(main_box)
    frm3.pack(side='top',fill='both',expand='yes')
    tk.Label(frm3,text = "申请地区区划代码").pack(side='left')
    tk.Entry(frm3, width=50).pack(side='left')

    tk.Button(main_box, text = "注册").pack(side='top',fill='both',expand='yes')
    main_box.mainloop()

def sendacccode():
    pass

if __name__ == "__main__":
    user_reg()